//
//  VideoXiangqingTableViewCell.m
//  A_HandHeldLOL
//
//  Created by Zhao YanBin on 16/1/23.
//  Copyright © 2016年 zhaoyanbin. All rights reserved.
//

#import "VideoXiangqingTableViewCell.h"

@implementation VideoXiangqingTableViewCell

- (void)dealloc
{
    [_name release];
    [_neirong release];
    [_img release];
    [_time release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.name = [[UILabel alloc] init];
//        _name.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_name];
        
        self.neirong = [[UILabel alloc] init];
        _neirong.numberOfLines = 0;
        _neirong.font = [UIFont systemFontOfSize:15];
//        _neirong.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_neirong];
        
        self.img = [[UIImageView alloc] init];
        _img.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_img];
        
        self.time = [[UILabel alloc] init];
        _time.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_time];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _name.frame = CGRectMake(90, 10, 200, 40);
    _img.frame = CGRectMake(10, 10, 70, 70);
    _neirong.frame = CGRectMake(90, 50, 200, 40);
    _time.frame = CGRectMake(300, 60, 50, 30);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
